package com.tanhua.sso.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 用户信息表
 * @author：Bing
 * @date：2021/3/16 11:02
 * @version：1.0
 */
@Data
@Builder
@TableName(value = "tb_user_info")
public class UserInfo extends BasePojo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 用户头像
     */
    @TableField(value = "logo")
    private String logo;

    /**
     * 用户标签：多个用逗号分隔
     */
    @TableField(value = "tags")
    private String tags;

    /**
     * 性别，1-男，2-女，3-未知
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 用户年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 学历
     */
    @TableField(value = "edu")
    private String edu;

    /**
     * 居住城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 生日
     */
    @TableField(value = "birthday")
    private String birthday;

    /**
     * 封面图片
     */
    @TableField(value = "cover_pic")
    private String coverPic;

    /**
     * 行业
     */
    @TableField(value = "industry")
    private String industry;

    /**
     * 收入
     */
    @TableField(value = "income")
    private String income;

    /**
     * 婚姻状态
     */
    @TableField(value = "marriage")
    private String marriage;

    @TableField(value = "created")
    private Date created;

    @TableField(value = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NICK_NAME = "nick_name";

    public static final String COL_LOGO = "logo";

    public static final String COL_TAGS = "tags";

    public static final String COL_SEX = "sex";

    public static final String COL_AGE = "age";

    public static final String COL_EDU = "edu";

    public static final String COL_CITY = "city";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_COVER_PIC = "cover_pic";

    public static final String COL_INDUSTRY = "industry";

    public static final String COL_INCOME = "income";

    public static final String COL_MARRIAGE = "marriage";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}